package com.alvin.springshiro.service;

import com.alvin.springshiro.model.Permission;
import com.alvin.springshiro.model.Role;
import com.alvin.springshiro.model.User;

import java.util.List;

public interface UserRolePermissionService {

    public User getUserById(int userId);

    public User getUserByUserName(String userName);

    public int addUser(User user);

    public int addRole(Role role);

    public List<Role> getUserRols(int userId);

    public List<Permission> getUserPermissions(int userId);
}
